//
//  ViewController.h
//  AsteroidGame
//
//  Created by iD Student on 7/11/13.
//  Copyright (c) 2013 iD Student. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Asteroid.h"
#import "Particle.h"

@interface ViewController : UIViewController<UIAccelerometerDelegate>
{
    UIImageView *imageRocket;
    
    int angle;
    int height;
    int density;
    int speed;
    NSMutableArray *asteroidArray;
    
    NSTimer *updateRocketLocation;
    NSTimer *updateAsteroids;
    NSTimer *spawnAsteroids;
    IBOutlet UISegmentedControl *controlOptions;
}

@property (nonatomic) int screenHeight, screenWidth;

@property (nonatomic,retain) IBOutlet UILabel *labelScore;

@property (weak, nonatomic) IBOutlet UIButton *backToMainMenuButton;

@property (strong, nonatomic) NSMutableArray *highScores;

- (void)spawnAsteroids;
- (void)updateAsteroids;

- (void)spawnParticle;
- (void)updateParticle;

- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration;
@end
